home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!milod
- From: milod@netcom.com (John DiCamillo)
- Subject: Re: Help - ERROR: Use C++ with iostream.h - ???
- Message-ID: <milodDpK638.23E@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- References: <31671633.33DD@inforamp.net> <N.040896.100149.11@ix.netcom.com>
- Date: Mon, 8 Apr 1996 19:28:19 GMT
- Sender: milod@netcom16.netcom.com
-
- >> When I run a program I brought from schoo, that is properly formatted and
- >> runs on the UNIX/PowerPC system there, I get an error like "Use C++ with
- >> iostream.h". I even renamed the first character in the header file from
- >> an upper case "I" to a lower case "i". Any ideas?
-
- It probably means that your C++ compiler "thinks" its
- compiling a C program, not a C++ program. Some compilers
- are picky about the filename extensions:
-
- use *.cpp for C++ source files
- use *.hpp for C++ header files
-
- Note: I'm not saying that files "should" be named a
- certain way, only that some compilers may insist on it.
-
- Also, there is usually a compiler setting to force the
- compiler to treat all input files as either C or C++
- source code. Try the help system to find the appropriate
- incantation.
-
- --
- ciao,
- milo
- ================================================================
- John DiCamillo Fiery the Angels Fell
- milod@netcom.com Deep thunder rode around their shores
-